package com.df.mybatis.extension;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/** Created by  on 2020/1/2. */
public interface MyBaseMapper<T> extends BaseMapper<T> {

  /** 以下定义的 4个 method 其中 3 个是内置的选装件 */
  int insertBatchSomeColumn(List<T> entityList);

  int alwaysUpdateSomeColumnById(@Param(Constants.ENTITY) T entity);

  int deleteByIdWithFill(T entity);
}
